package com.project.easy.common.util.exception.sys;

import com.project.easy.common.util.enums.exception.ExceptionEnums;
import com.project.easy.common.util.exception.BaseException;
import com.project.easy.common.util.string.StringUtil;

/**
 * @author GreatorMan.cool
 * @copyright: Copyright (c) 2020
 * @company: 扬起科技有限公司
 * @date 2021/10/24 20:53
 * @description: 系统异常抽象异常
 */
public abstract class AbstractSysException extends BaseException {


    public    AbstractSysException(String subCode, String subMesg) {
        super(ExceptionEnums.SYS_EXCEPTION.getCode(), ExceptionEnums.SYS_EXCEPTION.getName(), subCode, StringUtil.isBlank(subMesg) ? "系统异常" : subMesg);
    }
}
